package com.proton.carepatchtemp.constant;

import android.Manifest;

import com.proton.carepatchtemp.BuildConfig;
import com.proton.carepatchtemp.R;
import com.proton.carepatchtemp.application.VCare;

/**
 * Created by Api on 2016/9/21.
 */

//经常变动的配置
public class Settings {
    //手机号码加密Key
    public static final String ENCRYPT_KEY = "proton521liucome";
    //数据库名称
    public static final String DB_NAME = "temp_db";
    //---api
    //  正式环境
    public final static String realDomain = "www.protontek.com:88";
    public final static String demoDomain = "www.protontek.com:99";
    //  线上测试环境
    public static final String BUGLY_APPID = "ae87846642";
    public static final int TIMEOUT_RQS = 10000;
    //---OSS
    public static final String OOS_DEVICE_FLAG = "android";
    //---Permissions
    public static final String[] Permissions = new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.BLUETOOTH_ADMIN, Manifest.permission.BLUETOOTH, Manifest.permission.READ_PHONE_STATE, Manifest.permission.WAKE_LOCK};
    //---Bluetooth
    public static final int DATA_TEMP = 1;
    public static final int DATA_BEAT = 2;
    //扫描时间
    public static final int SEARCH_TIME = 12 * 1000;
    public static final String[] arrayTimes = new String[]{VCare.get().getString(R.string.time15), VCare.get().getString(R.string.time30), VCare.get().getString(R.string.time45), VCare.get().getString(R.string.time60)};
    //微信APP_ID
    public static final String WX_APP_ID = "wxa6133c49581203d1";
    public static final String QQ_GROUP = "0Xt2-CdDomqPGIE6fYr_IzYo5aqe0fDJ";
    //ACache配置
    public static final int MAX_SIZE = 1000 * 1000 * 50; // 50 mb
    public static final int MAX_COUNT = Integer.MAX_VALUE; // 不限制存放数据的数量
    //  温度设置
    //  温度读取时间间隔
    public static final long TEMP_LOAD_TIME_DIV = 4000;
    //  数据获取超时
    public static final long TEMP_LOAD_TIME_OUT = 10 * 60 * 1000;
    //  默认最高温度
    public static final float DEFAULT_MIN = 36.0f;
    //  默认最低温度
    public static final float DEFAULT_MAX = 37.5f;
    public static final long D_ALERT_TIME = 15 * 60 * 1000;
    //来自gradle
    private static final boolean isDebug = BuildConfig.LOG_DEBUG;
    //  是否测试模式
    public static final boolean isTest = isDebug;
    private static final String isServer = BuildConfig.SERVER_PATH;
    //  测试正式切换
    public static String mDomain = isServer;
    //  是否允许分享
    public static boolean enableShare = true;

    // 是否已经播放视频
    public static boolean isPlayerTv = false;
}
